import teamImg from "@/assets/team.png";

import getEditorImpl from "../libs/editor";

let editor;
export function setupEditor(canvas: HTMLCanvasElement) {
  enum NodeType {
    TEXT,
    IMG,
  }
  const nodes: any[] = [
    {
      type: NodeType.TEXT,
      value: `现场检（查勘探）情况：床前明月光，疑是地上霜。举头望明月，低头思故乡；`,
      line: 1,
      label: "现场检（查勘探）情况：",
    },
  ];
  getEditorImpl(canvas, nodes);
}
